<div class="bjui-pageHeader">
    <a href="{:U('Theme/Add')}" class="btn btn-green" data-toggle="dialog" data-width="520" data-height="320" data-id="dialog-mask" data-mask="true">{:L('add_theme')}</a>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
                <th width="80"><?php echo L("style_identity")?></th>
                <th><?php echo L("style_chinese_name")?></th>
                <th><?php echo L("author")?></th>
                <th><?php echo L("style_version")?></th>
                <th><?php echo L("status")?></th>
                <th width="150">
                    <?php echo L('operations_manage');?>
                </th>
            </tr>
        </thead>
        <tbody>
            <foreach name="page_list" item="item">
                <tr data-id="{$item.id}">
                    <td>{$item.dirname}</td>
                    <td>{$item.name}</td>
                    <td>{$item.author}</td>
                    <td>{$item.version}</td>
                    <td>{$item.disable}</td>
                    <td align="center">
                        <a class="btn btn-green" href="{:U('Theme/export?dirname='.$item['dirname'])}" target="_blank"><span>{:L('export')}</span></a>
                        <a class="btn btn-green" href="{:U('Theme/edit', ['dirname' => $item['dirname']])}" data-toggle="dialog" data-width="1050" data-height="625" data-id="Theme_edit" data-title="编辑-{$item.title}"><span>{:L('edit')}</span></a>
                        <a class="btn btn-red" href="{:U('Theme/delete?dirname='.$item['dirname'])}" data-toggle="doajax" data-confirm-msg="确定要删除吗？"><span>{:L('delete')}</span></a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>